using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using upcNameSpace;

public partial class UPCTEST : System.Web.UI.Page
{
    upc UPC = new upc();
   
    protected void Page_Load(object sender, EventArgs e)
    {
        //Label1.Text = UPC.Help;
        //string strUPC = UPC.calculateCheckDigit("654249032997");
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        structLookupEAN UPCSearchResults = UPC.retrieveUPCInfo(TextBox1.Text);
        if (!UPCSearchResults.found)
        {
            Label1.Text = "UPC Not Found!";
        }
        else
        {
            Label1.Text = "This UPC is a " + UPCSearchResults.description;
        }
    }
}
